package request

import (
	"gitee.com/cjsn/topsdk/util"
)

type AlibabaSscSupplyplatformServiceworkerCancelleaveRequest struct {
	/*
	   时间段 defalutValue��2021 10:00-10:30    */
	LeaveBeginAndEndList *[]string `json:"leave_begin_and_end_list,omitempty" required:"false" `
	/*
	   身份证号 defalutValue��XXX    */
	IdentityNumber *string `json:"identity_number,omitempty" required:"false" `
}

func (s *AlibabaSscSupplyplatformServiceworkerCancelleaveRequest) SetLeaveBeginAndEndList(v []string) *AlibabaSscSupplyplatformServiceworkerCancelleaveRequest {
	s.LeaveBeginAndEndList = &v
	return s
}
func (s *AlibabaSscSupplyplatformServiceworkerCancelleaveRequest) SetIdentityNumber(v string) *AlibabaSscSupplyplatformServiceworkerCancelleaveRequest {
	s.IdentityNumber = &v
	return s
}

func (req *AlibabaSscSupplyplatformServiceworkerCancelleaveRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.LeaveBeginAndEndList != nil {
		paramMap["leave_begin_and_end_list"] = util.ConvertBasicList(*req.LeaveBeginAndEndList)
	}
	if req.IdentityNumber != nil {
		paramMap["identity_number"] = *req.IdentityNumber
	}
	return paramMap
}

func (req *AlibabaSscSupplyplatformServiceworkerCancelleaveRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
